extract-mkey.py initial commit