Cannot import certain python modules

Thanks for your reply, Peter. Sorry for my late answer, had some problems to solve with using the terminal.

Unfortunately, the path is the same in my home directory as in the projectfolder.

When I print sys.path, however, the long array comes back.

['/Users/Marijn/PycharmProjects/untitled', '/Users/Marijn/PycharmProjects/untitled',       '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages']

I adjusted the ENV_PATH variable to the following line:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/Marijn/PycharmProjects/untitled:/Library/Frameworks/Python.framework/Versions/2.7/ 

This includes the full path from the terminal plus the two directories which PyCharm uses.

When I execute the following code in KM, I get the known command not found errors.

The weird thing is, /usr/bin(/pyhton) isn't even found. When I include #! /usr/bin/python I only get errors for the external python modules (like requests).

When I echo $PATH in a separate 'Execute Shell script' I do get the value of ENV_PATH:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/Marijn/PycharmProjects/untitled:/Library/Frameworks/Python.framework/Versions/2.7/

And when I add /usr/bin/pyhton to ENV_PATH, it still acts like there isn't #! /usr/bin/python above the script (lots of errors of 'command not found'), like the ENV_PATH doesn't get loaded when executing python, but does allow it to print in a separate 'Execute shell script'.

So I'm a bit lost. Can you shed some light on this?