Have python script working with ajax pluggin