[python] Why doesn't Python have a sign function?