errors.py moved to data/ directory