diff --git a/bindings/python/ADIOSPy.cpp b/bindings/python/ADIOSPy.cpp
index 395c0b7f87a627b8cb009a2548ff890483ad568e..c7d161221a7b91bfbfad7e7957be707de8bb7a14 100644
--- a/bindings/python/ADIOSPy.cpp
+++ b/bindings/python/ADIOSPy.cpp
@@ -12,6 +12,8 @@
 
 #include "adiosPyTypes.h"
 
+#include "adios2/ADIOSMPI.h"
+
 namespace adios
 {
 
diff --git a/bindings/python/ADIOSPy.h b/bindings/python/ADIOSPy.h
index 2d88243bc367da313d5b11c076ef00f67f24f300..e1ed1f0e1964f600f87d229cadf55ae2b9acabf6 100644
--- a/bindings/python/ADIOSPy.h
+++ b/bindings/python/ADIOSPy.h
@@ -18,7 +18,7 @@
 #include <adios2.h>
 
 #include "IOPy.h"
-#include "adios2/ADIOSMPI.h"
+#include "adios2/ADIOSMPICommOnly.h"
 
 namespace adios
 {