Fixed python interface definition