python interface, still working on it...