Due to its ease of use, expressiveness, and thriving open-source ecosystem, Python has become one of the most popular programming languages in modern research. It is commonly used as a scripting language, meaning researchers write their code as a series of expressions in a single file, which is then executed by the Python runtime. However, there are many limitations to this scripting model, and it can be more sustainable in the long run to structure Python code into libraries instead of scripts. The benefits of doing so include: