def autoargs(l):
    self = l.pop('self')
for k, v in list(l.items()):
    setattr(self, k, v)


class Base(object):

    def __init__(self, a, b, c):
        autoargs(locals())
A Common constructor in Python