changed into a class. migrated get_version.py into this script.