def update(object, config):
    global _type
    if (object.__class__.__name__ == 'tweet'):
        _type = 'tweet'
    elif (object.__class__.__name__ == 'user'):
        _type = 'user'
    elif (object.__class__.__name__ == 'dict'):
        _type = ((config.Following * 'following') + (config.Followers * 'followers'))
    if (_type == 'tweet'):
        Tweet = object
        if ('Naoaianeia a?aiy (ceia)' in Tweet.datetime):
            Tweet.datetime = Tweet.datetime[:19]
        try:
            datetime_ms = (datetime.datetime.strptime(Tweet.datetime, Tweet_formats['datetime']).timestamp() * 1000)
        except:
            datetime_ms = (datetime.datetime.strptime(Tweet.datetime, '%Y-%m-%d %H:%M:%S').timestamp() * 1000)
        day = weekdays[strftime('%A', localtime((datetime_ms / 1000)))]
        dt = f'{object.datestamp} {object.timestamp}'
        _data = {'id': str(Tweet.id), 'conversation_id': Tweet.conversation_id, 'created_at': datetime_ms, 'date': dt, 'timezone': Tweet.timezone, 'place': Tweet.place, 'tweet': Tweet.tweet, 'language': Tweet.lang, 'hashtags': Tweet.hashtags, 'cashtags': Tweet.cashtags, 'user_id': Tweet.user_id, 'user_id_str': Tweet.user_id_str, 'username': Tweet.username, 'name': Tweet.name, 'day': day, 'hour': strftime('%H', localtime((datetime_ms / 1000))), 'link': Tweet.link, 'urls': Tweet.urls, 'photos': Tweet.photos, 'video': Tweet.video, 'thumbnail': Tweet.thumbnail, 'retweet': Tweet.retweet, 'nlikes': int(Tweet.likes_count), 'nreplies': int(Tweet.replies_count), 'nretweets': int(Tweet.retweets_count), 'quote_url': Tweet.quote_url, 'search': str(config.Search), 'near': Tweet.near, 'geo': Tweet.geo, 'source': Tweet.source, 'user_rt_id': Tweet.user_rt_id, 'user_rt': Tweet.user_rt, 'retweet_id': Tweet.retweet_id, 'reply_to': Tweet.reply_to, 'retweet_date': Tweet.retweet_date, 'translate': Tweet.translate, 'trans_src': Tweet.trans_src, 'trans_dest': Tweet.trans_dest}
        _object_blocks[_type].append(_data)
    elif (_type == 'user'):
        user = object
        try:
            background_image = user.background_image
        except:
            background_image = ''
        _data = {'id': user.id, 'name': user.name, 'username': user.username, 'bio': user.bio, 'url': user.url, 'join_datetime': ((user.join_date + ' ') + user.join_time), 'join_date': user.join_date, 'join_time': user.join_time, 'tweets': user.tweets, 'location': user.location, 'following': user.following, 'followers': user.followers, 'likes': user.likes, 'media': user.media_count, 'private': user.is_private, 'verified': user.is_verified, 'avatar': user.avatar, 'background_image': background_image}
        _object_blocks[_type].append(_data)
    elif ((_type == 'followers') or (_type == 'following')):
        _data = {((config.Following * 'following') + (config.Followers * 'followers')): {config.Username: object[_type]}}
        _object_blocks[_type] = _data
    else:
        print('Wrong type of object passed!')
def update(object, config):
    global _type
    if (object.__class__.__name__ == 'tweet'):
        _type = 'tweet'
    elif (object.__class__.__name__ == 'user'):
        _type = 'user'
    elif (object.__class__.__name__ == 'dict'):
        _type = ((config.Following * 'following') + (config.Followers * 'followers'))
    if (_type == 'tweet'):
        Tweet = object
        if ('Naoaianeia a?aiy (ceia)' in Tweet.datetime):
            Tweet.datetime = Tweet.datetime[:19]
        try:
            datetime_ms = (datetime.datetime.strptime(Tweet.datetime, Tweet_formats['datetime']).timestamp() * 1000)
        except:
            datetime_ms = (datetime.datetime.strptime(Tweet.datetime, '%Y-%m-%d %H:%M:%S').timestamp() * 1000)
        day = weekdays[strftime('%A', localtime((datetime_ms / 1000)))]
        dt = f'{object.datestamp} {object.timestamp}'
        _data = {'id': str(Tweet.id), 'conversation_id': Tweet.conversation_id, 'created_at': datetime_ms, 'date': dt, 'timezone': Tweet.timezone, 'place': Tweet.place, 'tweet': Tweet.tweet, 'language': Tweet.lang, 'hashtags': Tweet.hashtags, 'cashtags': Tweet.cashtags, 'user_id': Tweet.user_id, 'user_id_str': Tweet.user_id_str, 'username': Tweet.username, 'name': Tweet.name, 'day': day, 'hour': strftime('%H', localtime((datetime_ms / 1000))), 'link': Tweet.link, 'urls': Tweet.urls, 'photos': Tweet.photos, 'video': Tweet.video, 'thumbnail': Tweet.thumbnail, 'retweet': Tweet.retweet, 'nlikes': int(Tweet.likes_count), 'nreplies': int(Tweet.replies_count), 'nretweets': int(Tweet.retweets_count), 'quote_url': Tweet.quote_url, 'search': str(config.Search), 'near': Tweet.near, 'geo': Tweet.geo, 'source': Tweet.source, 'user_rt_id': Tweet.user_rt_id, 'user_rt': Tweet.user_rt, 'retweet_id': Tweet.retweet_id, 'reply_to': Tweet.reply_to, 'retweet_date': Tweet.retweet_date, 'translate': Tweet.translate, 'trans_src': Tweet.trans_src, 'trans_dest': Tweet.trans_dest}
        _object_blocks[_type].append(_data)
    elif (_type == 'user'):
        user = object
        try:
            background_image = user.background_image
        except:
            background_image = 
        _data = {'id': user.id, 'name': user.name, 'username': user.username, 'bio': user.bio, 'url': user.url, 'join_datetime': ((user.join_date + ' ') + user.join_time), 'join_date': user.join_date, 'join_time': user.join_time, 'tweets': user.tweets, 'location': user.location, 'following': user.following, 'followers': user.followers, 'likes': user.likes, 'media': user.media_count, 'private': user.is_private, 'verified': user.is_verified, 'avatar': user.avatar, 'background_image': background_image}
        _object_blocks[_type].append(_data)
    elif ((_type == 'followers') or (_type == 'following')):
        _data = {((config.Following * 'following') + (config.Followers * 'followers')): {config.Username: object[_type]}}
        _object_blocks[_type] = _data
    else:
        print('Wrong type of object passed!')