NameError: global name 'self' is not defined

pyrax/__init__.py", line 192, in set_credentials
    self.default_region = region
NameError: global name 'self' is not defined