def json_str_to_concrete_bytes(tweet_str): tweet_str = tweet_str.decode('utf-8') b = json_tweet_string_to_Communication(tweet_str, True, True) if b is None: return None else: return write_communication_to_buffer(b)