Added EM.py