Today, I propose a template for your python scripts. You can use it as you want when you need to create a script. If you want to modify it, go ahead, but let me know…
By default, with this script, you can manage -h for help, -c for config file, -v for verbosity, you can also enter parameters. It will by default use the system stdin and stdout, and will log on error.log the stderr.
If you have trouble to use this script, do not hesitate to contact me through this blog.
To download the main_template.py, go to the project page.
Regards and have fun.