Python binding for metis