Added a library for the python scripts in this repository to clean up the code in all the other files and avoid duplicate functions/code