Set Python Variable In String Javascript Functions And Events