activeresource python notebook manipulation