some corrections to em2py