for every ext in combo, if ext is true, join it to a string, separated by '.', put the result in a tuple,
suffixes = ( '.' . join ( ext for ext in combo if ext ) for combo in product ( databases , ser_fmts , cmp_fmts ) )