how to check number is negative in python