Major refactor

- PEP8 compliance,
- docstrings,
- removed plain text password from instances,
- abstracted out sign in process.