Test If Variable Is Numeric In Python Program