Get, put , post and delete requests in python