I dont see how the python version would have any effect on javascript running inside the browser and it works for me with python 2 as well. it might be a timing issue since the google page is JS based as well. Try changing it to:
Code:
window.addEventListener('DOMContentLoaded', function() { setTimeout(fix_google_markup, 100); } );