Replace use of depecrated commands module by subprocess module
The module commands
is deprecated: https://docs.python.org/2/library/commands.html and instead the module subprocess
is recommended. https://docs.python.org/2/library/subprocess.html