added public PythonFunction constructor 

no support for functions with closure
covers use cases from cp35180 and cp34932

I am looking for extra test cases which can break it.