Replacing deprecated commands module
Replacing deprecated commands module, v2
Making changes more pythonic.
Merge pull request #951 from pravsripad/replace_commands_module

Replace deprecated commands module. [Python 3 support]