python interface extensions