how to get data from ajax request in python