Python check if list has consecutive numbers