added c functions to import python code into C++ interface