Python Check If Number Has Decimal