Python coding style fixes
inject JavaScript only once in a frame
python coding style fixes