How to get the entire and decimal part of a float data in Python?