added entry point for python interface