added operations query to the python api