em.py corrections