os.system to subprocess and PEP8