Fixed get_meta_path

Started make_gen function. It is almost done.