Code formatted expreg.py