diff --git a/libcloud/utils/__init__.py b/libcloud/utils/__init__.py
index b83a14f..cfceb49 100644
--- a/libcloud/utils/__init__.py
+++ b/libcloud/utils/__init__.py
@@ -28,6 +28,7 @@ SHOW_DEPRECATION_WARNING = True
 SHOW_IN_DEVELOPMENT_WARNING = True
 OLD_API_REMOVE_VERSION = '0.7.0'
 
+
 def deprecated_warning(module):
     if SHOW_DEPRECATION_WARNING:
         warnings.warn('This path has been deprecated and the module'
diff --git a/libcloud/utils/dist.py b/libcloud/utils/dist.py
index 1b426cf..c8db97f 100644
--- a/libcloud/utils/dist.py
+++ b/libcloud/utils/dist.py
@@ -40,6 +40,7 @@ def _filter_names(names):
                  and (not n.endswith('.py'))]
     return names
 
+
 def relative_to(base, relativee):
     """
     Gets 'relativee' relative to 'basepath'.
@@ -48,7 +49,7 @@ def relative_to(base, relativee):
 
     >>> relative_to('/home/', '/home/radix/')
     'radix'
-    >>> relative_to('.', '/home/radix/Projects/Twisted') # curdir is /home/radix
+    >>> relative_to('.', '/home/radix/Projects/Twisted') #curdir is /home/radix
     'Projects/Twisted'
 
     The 'relativee' must be a child of 'basepath'.
@@ -62,6 +63,7 @@ def relative_to(base, relativee):
         return os.path.join(base, relative)
     raise ValueError("%s is not a subpath of %s" % (relativee, basepath))
 
+
 def get_packages(dname, pkgname=None, results=None, ignore=None, parent=None):
     """
     Get all packages which are under dname. This is necessary for
@@ -87,8 +89,8 @@ def get_packages(dname, pkgname=None, results=None, ignore=None, parent=None):
         results.append(prefix + pkgname + [bname])
         for subdir in filter(os.path.isdir, abssubfiles):
             get_packages(subdir, pkgname=pkgname + [bname],
-                        results=results, ignore=ignore,
-                        parent=parent)
+                         results=results, ignore=ignore,
+                         parent=parent)
     res = ['.'.join(result) for result in results]
     return res
 
diff --git a/libcloud/utils/misc.py b/libcloud/utils/misc.py
index 88af26b..f0c94df 100644
--- a/libcloud/utils/misc.py
+++ b/libcloud/utils/misc.py
@@ -206,7 +206,7 @@ def dict2str(data):
     """
     result = ''
     for k in data:
-        if data[k] != None:
+        if data[k] is not None:
             result += '%s %s\n' % (str(k), str(data[k]))
         else:
             result += '%s\n' % str(k)
diff --git a/libcloud/utils/py3.py b/libcloud/utils/py3.py
index d84392a..0d6a31c 100644
--- a/libcloud/utils/py3.py
+++ b/libcloud/utils/py3.py
@@ -45,6 +45,7 @@ if sys.version_info >= (3, 0):
         return types.MethodType(callable, instance or klass())
 
     bytes = __builtins__['bytes']
+
     def b(s):
         if isinstance(s, str):
             return s.encode('utf-8')
@@ -52,13 +53,17 @@ if sys.version_info >= (3, 0):
             return s
         else:
             raise TypeError("Invalid argument %r for b()" % (s,))
+
     def byte(n):
         # assume n is a Latin-1 string of length 1
         return ord(n)
+
     u = str
     next = __builtins__['next']
+
     def dictvalues(d):
         return list(d.values())
+
 else:
     PY2 = True
     import httplib
@@ -76,11 +81,15 @@ else:
     method_type = types.MethodType
 
     b = bytes = str
+
     def byte(n):
         return n
+
     u = unicode
+
     def next(i):
         return i.next()
+
     def dictvalues(d):
         return d.values()
 
