rewrite createRoutedOutside.py