How to create Python scripts you can invoke as console commands