updated two regression tests
export the Python generator in library
change `my_type` to `exptype`