Note that to avoid opencv conflicts, use ros python2.7. See the article about how to create a virtual environment with python2.7
The python node must be in the folder: scripts
Make sure to make the python script executable:
In the terminal, run:
chmod + x py_fname