for index fname in enumerate(dotnames.split('.')): AttributeError: 'tuple' object has no attribute 'split'