def _hex_to_bin_str(hex_string):
 unpadded_bin_string_list = (bin(to_byte(c)) for c in hex_string)
 padded_bin_string_list = map(_pad_binary, unpadded_bin_string_list)
 bitwise_message = ''.join(padded_bin_string_list)
 return bitwise_message

def _hex_to_bin_str ( hex_string ) : unpadded_bin_string_list = ( bin ( to_byte ( c ) ) for c in hex_string ) padded_bin_string_list = map ( _pad_binary , unpadded_bin_string_list ) bitwise_message = '' . join ( padded_bin_string_list ) return bitwise_message
given a python bytestring .