move the check for EDMPlugin modules outside of python script