[enh] replaced copypaste with import in xkcd example