Create class from python interface