I can't connect to the web browser

IndentationError: unexpected indent also appears on putty, how can I solve it, thank you.

start by fixing the indentation problem. Python requires a consistent indentation of the code and the error is literally pointing you to the line and file where the problem is.