reformat code for pep8,and python 3.3, change cgi interface get_code_img with add rediret.