def naughty_strings(filepath=FILEPATH):
 strings = []
 with open(filepath, 'r') as f:
  strings = f.readlines()
  strings = [x.strip(u'\n') for x in strings]
  strings = [x for x in strings if (x and (not x.startswith(u'#')))]
  strings.insert(0, u'')
 return strings

def naughty_strings ( filepath = FILEPATH ) : strings = [ ] with open ( filepath , 'r' ) as f : strings = f . readlines ( ) strings = [ x . strip ( u'\n' ) for x in strings ] strings = [ x for x in strings if ( x and ( not x . startswith ( u'#' ) ) ) ] strings . insert ( 0 , u'' ) return strings
get the list of naughty_strings .