Python api additions