replaced os.system with subprocess.call
Now able to specify with config file to use via system argument. eg. 'python shell.py production' or 'python shell.py test'
unittest for  login, and unauthorized access
Refactoring