diff --git a/geomagio/algorithm/Algorithm.py b/geomagio/algorithm/Algorithm.py
index a712b14a128852e2f9714da2087db5e9724f5e05..40fd46f64ef02b7f544428106ba80a5e51d0d3ff 100644
--- a/geomagio/algorithm/Algorithm.py
+++ b/geomagio/algorithm/Algorithm.py
@@ -87,7 +87,7 @@ class Algorithm(object):
         """
         return (start, end)
 
-    def can_produce_data(self, starttime, endtime, stream, channels = None):
+    def can_produce_data(self, starttime, endtime, stream, channels=None):
         """Can Product data
 
         Parameters
@@ -100,7 +100,7 @@ class Algorithm(object):
             The input stream we want to make certain has data for the algorithm
         """
         input_gaps = TimeseriesUtility.get_merged_gaps(
-                TimeseriesUtility.get_stream_gaps(stream,channels))
+                TimeseriesUtility.get_stream_gaps(stream, channels))
         for input_gap in input_gaps:
             # Check for gaps that include the entire range
             if (starttime >= input_gap[0] and
diff --git a/geomagio/algorithm/XYZAlgorithm.py b/geomagio/algorithm/XYZAlgorithm.py
index 2d1a5de97a6609bfda00cc11a289fddbcc3214d3..ab75c7b242ce4674a565fb92fe88117ae7573616 100644
--- a/geomagio/algorithm/XYZAlgorithm.py
+++ b/geomagio/algorithm/XYZAlgorithm.py
@@ -142,13 +142,13 @@ class XYZAlgorithm(Algorithm):
         self._outformat = arguments.xyz_to
         self._inchannels = arguments.inchannels or \
                             CHANNELS[self._informat]
-        # outchannels set according to specified outchannels or inchannel designation
+        # Set outchannels to outchannel argument or inchannel designation
         # if the inchannels do not have 'Z' or 'F' neither will the outchannel
         if arguments.outchannels:
             self._outchannels = arguments.outchannels
         else:
             self._outchannels = CHANNELS[self._outformat]
-            if not 'Z' in self._inchannels:
+            if 'Z' not in self._inchannels:
                 del self._outchannels[self._outchannels.index('Z')]
-            if not 'F' in self._inchannels:
+            if 'F' not in self._inchannels:
                 del self._outchannels[self._outchannels.index('F')]