Common tools for python scripts