changed itervalues() to values() in ExtendUrlPatternDispatcher