Python Test If Variable Is Int