ERROR: AttributeError: 'long' object has no attribute 'isdigit'