added -e flag for error tolerance specification for magic.py and corresponding tests