Use entry_points console_scripts

It's enable you to test tools just call the function.

see also http://www.scotttorborg.com/python-packaging/command-line-scripts.html

Best regards.