added balance recommend flag setting

sets the flag in python instead of the javascript