Initially I thought of putting this in pmb/helpers/other.py, but this resulted in a circular import, so I thought the easiest way to work around that was to just create a new file.