HTML fix inside of Python script