Javascript window.print() now works when allow_printing is True