def human_readable(num, suffix='B'):
    """Convert bytes to a human readable form"""
    if num == 0:
        return '0.0 GB'
    else:
        for unit in ['', 'K', 'M', 'G', 'T', 'P']:
            if abs(num) < 1024.0:
                return '%.1f %s%s' % (num, unit, suffix)
            num /= 1024.0
