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