def progressBar(curr, total, b_length=60, prefix='', suffix='', decimals=0):
    """Return the progress bar

    Code from https://gist.github.com/aubricus/f91fb55dc6ba5557fbab06119420dd6a
    """
    str_format = "{0:." + str(decimals) + "f}"
    percents = str_format.format(100 * (curr/ float(total)))
    filled_len = int(round(b_length * curr / float(total)))
    bar = '█' * filled_len + '░' * (b_length - filled_len)

    return '\r%s |%s| %s%s %s' % (prefix, bar, percents, '%', suffix)