pyweb: fix finish button behavior

Change-Id: I6f9313f721ca07e98107cd2770f5846ffae0171a
pyweb: remove unused code

Change-Id: I6141e314e04222544f8fe356d8cdfd3be1984840