Add python wrapper around _tokenparser