implemented get_regex and load_pynkey_code