Replace bin/ws with setup.py console script and allow consumers to customize arguments parsing