py: Add function to convert long int to float.