Working ajax python calls