Process Firefox versions numbers. Tell whether they are valid or not, whether they are nightlies or regular releases, whether this version precedes that other.
Just install it from pip:
pip install mozilla-version
virtualenv venv # create the virtualenv in ./venv
. venv1/bin/activate # activate it
git clone https://github.com/mozilla-releng/mozilla-version
cd mozilla-version
pip install mozilla-version