fixed python communication via AJAX