How to convert from infix to postfix/prefix using AST python module?,"['x', 'cos']"