How to execute Python inline from a bash shell
A 'heredoc' can be used to directly feed a script into the python interpreter:
python <<HEREDOCimport sysfor p in sys.path: print(p)HEREDOC/usr/lib64/python36.zip/usr/lib64/python3.6/usr/lib64/python3.6/lib-dynload/home/username/.local/lib/python3.6/site-packages/usr/local/lib/python3.6/site-packages/usr/lib64/python3.6/site-packages/usr/lib/python3.6/site-packages