Better conformance to good python coding style

- Added docstrings
- Uppercasified global constants
- Removed unused imports
- Other minor code refactoring
- Fixes #2

Signed-off-by: Mansour <mansour@oxplot.com>