Python Determine If Variable Is An Integer