started hacking on reg.py; set up major dictionaries based on json