'Create a copy of this extension bound to another environment.'

def bind(self, environment):

    rv = object.__new__(self.__class__)
    rv.__dict__.update(self.__dict__)
    rv.environment = environment
    return rv
