Using Django JSON encoder for ajax_requests decorator + Python 3 fixes