Please add whitespace around operators:

    progressbar_string = '=' * int(percent / 100 * 39) + '>'