Class python pipe