Here is a useful code that you can use in your applications:
pip
When printing a report I get an ods file instead of pdf
How to install Jam.py on Windows