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