use time.sleep() instead of calling external sleep

use time.sleep() instead of calling external sleep
remove "from subprocess import call", use "subprocess.call()" everywhere