pratt.py: added support for brackets