Python Check If Variable Is Integer