human
Complete the below
def autoassign(self, locals):

    ''''Automatically assigns local variables to `self`.
    Generally used in `__init__` methods, as in:
    def __init__(self, foo, bar, baz=1): autoassign(self, locals())'
    '''

=====
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    for (k, v) in locals.iteritems():
        if (k == 'self'):
            continue
        setattr(self, k, v)