using python to implement shunting yard algorithm