Generic python functions that can be used in multiple projects.