def print_bytes(sizeof):
    """ Pretty print bytes """
    for size in ['Bytes', 'KB', 'MB', 'GB', 'TB']:
        if abs(sizeof) < 1024.0:
            return "%3.1f %s" % (sizeof, size)
        sizeof /= 1024.0