Update __init__.py

Adding 'self' so that functions could use the global variables.