Python Dynamic-routing Resources