Cleaned up fix_dict.py for later