def filter_strip_join(some_list, sep):
 return cstr(sep).join((cstr(a).strip() for a in filter(None, some_list)))

def filter_strip_join ( some_list , sep ) : return cstr ( sep ) . join ( ( cstr ( a ) . strip ( ) for a in filter ( None , some_list ) ) )
given a list .