def beautifySize(size):
    """Returns a string representing the size in bytes in a more human readable way."""
    if size / 1073741824:
        return '%(size)0.2f GBytes' % {'size': float(size) / 1073741824.0}
    elif size / 1048576:
        return '%(size)0.2f MBytes' % {'size': float(size) / 1048576.0}
    elif size / 1024:
        return '%(size)0.2f KBytes' % {'size': float(size) / 1024.0}
    else:
        return '%(size)s Bytes' % {'size': size}
