OK, so I've got it to connect but then in pycharm get:
tarting debug server at port 5678
Use the following code to connect to the debugger:
import pydevd_pycharm
pydevd_pycharm.settrace('localhost', port=5678, stdoutToServer=True, stderrToServer=True, suspend=False)
Waiting for process connection...
Connected to pydev debugger (build 201.8538.36)
Expected: /Applications/PyCharm.app/Contents/debug-eggs/pydevd-pycharm.egg/pydevd_attach_to_process/attach_x86_64.dylib to exist.