added ix() and expand() routines to parser.py