code refactoring, finished conversion to requests module for URLs