add three matlab functions

transform matlab defined petri net to python style