clarify processing the _download_process() part
change variable name
move to global vars
cometic: remove end of line spaces
drop unnecessary flying vars
drop initialize_vars function as it completely move to globals
move choice_type to gui lib
move hasimages function to gui lib
more global vars
improve readability
parse the entire dict instead of splitting it up first
JSON-RPC update code can be way shorter