diff --git a/Common/gmshpy.i b/Common/gmshpy.i
index 6238db199bc262d2ecb31945aeb53506253543c6..670ea9d373ea4dce63655e478da7f91efc626bbe 100644
--- a/Common/gmshpy.i
+++ b/Common/gmshpy.i
@@ -1,8 +1,5 @@
 %feature("autodoc", "1");
 %module gmshpy
-%include std_string.i
-%include std_vector.i
-%include std_list.i
 %{
   #include "GmshConfig.h"
   #include "GModel.h"
@@ -64,6 +61,10 @@
   };
 %}
 
+%include std_string.i
+%include std_vector.i
+%include std_list.i
+
 %init %{
   errorHandler *eH = new errorHandler;
   Msg::SetCallback(eH);