Is it possible to import pattern_present into topo.command to preserve backwards compatibility, to avoid having to change where it's imported from?  Here it's fine to change, but in general we don't know who might have been importing it.