def keep(r):
    for item in r['str']:
        if (item['name'] == 'size'):
            units = item['content'].split(' ')[1]
            mult = {'KB': 1, 'MB': 1000.0, 'GB': 1000000.0}[units]
            size = (float(item['content'].split(' ')[0]) * mult)
            break
    if (size > 500000.0):
        return True
    else:
        return False
def keep(r):
    for item in r['str']:
        if (item['name'] == 'size'):
            units = item['content'].split(' ')[1]
            mult = {'KB': 1, 'MB': 1000.0, 'GB': 1000000.0}[units]
            size = (float(item['content'].split(' ')[0]) * mult)
            break
    if (size > 500000.0):
        return True
    else:
        return False