fixed the url redirects by using regex w+ instead of d+ in urls python file