Actually use the args sent by requests

Also, I made some changes to make the code more pep8-friendly.