Python Test If Variable Is An Integer