Add support for nesting /console/ in a sub url in console-cli.py and PEP-8 Python style compliance

Replaces pull requests 176 and 179