Replaced command with subprocess

command module has been removed in python 3