EM with parallel programming using python