Use params for requests.get method
Fix style and refactor