how to convert from infix to postfix/prefix using ast python module?,"['w', 'time', '*', 'sin']"