class Foo(object):

    def __init__(self):
        self.ab = 100

def __getattr__(self, name):
    return getattr(self, ''.join(sorted(name)))

def __setattr__(self, name, value):
    super(Foo, self).__setattr__(''.join(sorted(name)), value)
f = Foo()
print(f.ba)
f.ba = 200
print(f.ba)
2 names for a same attribute