Python Test If Input Is Integer