python reverse polish notation spreadsheet