Changing user in python,os.system('sudo -u hadoop bin/hadoop-daemon.sh stop tasktracker')