def to_bytestring_tuple(*x):
 return tuple(imap(to_bytestring, x))

def to_bytestring_tuple ( * x ) : return tuple ( imap ( to_bytestring , x ) )
converts the given strings to a bytestring if necessary .