Add pypattern to python exports, cleanup exports.