Extracts and imports Python code from preformatted elements in XHTML documents from remote hosts or local files. URLs can be added to the list of standard paths or modules can be imported directly using a convenience function.The import hook can also be used to import other standard file types from remote locations.