python interface (initial version)