rpn in python