Moved to python3. Reused code from another module.
Move to Python3. Lint.