if i try to dump from shell like this python -c 'help("modules")' > ~/Desktop/modules.txt
but if I try to execute from within the python like this>>os.system("python -c 'help("modules")' > ~/Desktop/modules.txt")
i get error
File "<stdin>", line 1
os.system("python -c 'help("modules")' > ~/Desktop/modules.txt")
^
SyntaxError: invalid syntax
once i get to save data to disk I want to populate module names to a list by reading the modules.txt, but it is contained in a way it is a list i pull but combination of strings too..