diff --git a/modules/bindings/pymod/blast.py b/modules/bindings/pymod/blast.py
index 4ab48e3014b6aa264cd1ad40a06fd81529ff90b8..9fdc739cf56bf28bd902b9ddc63194c315def01b 100644
--- a/modules/bindings/pymod/blast.py
+++ b/modules/bindings/pymod/blast.py
@@ -251,7 +251,10 @@ def Blast(query, database, gap_open=11, gap_ext=1, matrix='BLOSUM62',
           
   else:
     complexity_opt='-seg'
-    complexity_arg='yes' if filter_low_complexity==True else 'no'
+    if filter_low_complexity==True:
+      complexity_arg='yes'
+    else:
+      complexity_arg='no'
     args=[blast_exe, '-db', database, '-matrix', matrix,
           '-gapopen', str(gap_open), '-gapextend', str(gap_ext), '-outfmt', '5', complexity_opt, complexity_arg ]