diff --git a/src/dynamic_graph/__init__.py b/src/dynamic_graph/__init__.py
index b573be8806c101abeb9c32bfb39dc1aa96c6b9e3..d1b20751154bc21319a5a8860af27cbedc5044b0 100644
--- a/src/dynamic_graph/__init__.py
+++ b/src/dynamic_graph/__init__.py
@@ -3,11 +3,11 @@ Copyright (c) 2010 CNRS
 Author: Florent Lamiraux
 """
 
-import sys, dl
+import sys, DLFCN
 flags = sys.getdlopenflags()
 # Import C++ symbols in a global scope
 # This is necessary for signal compiled in different modules to be compatible
-sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
+sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL)
 from wrap import *
 # Recover previous flags
 sys.setdlopenflags(flags)