add compile, insert_path, match method to pyr3