I wrapped my code into python package and now I want it to be also runnable from the command line (linux). So I added console_scripts tag to setup.py and all seems to be working
pip installs the scripts under ~/.local/bin. You need to add this to your PATH with:
~/.local/bin
PATH
export PATH=~/.local/bin:$PATH