I'm not sure if it's the problem but the slashes don't look right. I would have expected something more like:
routes_in = (
("localhost:8000", '/welcome'),
('*.localhost:8000', '/operations')
)
routes_out = (
('/welcome', r"//localhost:8000"),
('/operations', '*.localhost:8000')
)

