init framework for python wrapper