how to get payload from request in python