added print and random to the parser