def fmt_bytes(bytes: int) -> str:
    """
    Prints out a human readable bytes amount for a given number of bytes
    """
    if bytes > 1000000000:
        return '{:.2f} GB'.format(bytes / 1000000000)
    if bytes > 1000000:
        return '{:.2f} MB'.format(bytes / 1000000)
    if bytes > 1000:
        return '{:.2f} KB'.format(bytes / 1000)
    return "{} B".format(bytes)