new parser as python class