fix the param parsin, some regex and python conventions