diff --git a/lib/color_compliment.py b/lib/color_compliment.py
index <HASH>..<HASH> 100755
--- a/lib/color_compliment.py
+++ b/lib/color_compliment.py
@@ -2,7 +2,11 @@
 
 from colortrans import *
 from colorsys import hls_to_rgb, rgb_to_hls
-from md5 import md5
+# md5 deprecated since Python 2.5
+try:
+    from md5 import md5
+except ImportError:
+    from hashlib import md5
 from sys import argv
Try hashlib over md5 (md5 is deprecated)