Python Check If Variable Is An Integer