I am writing a search engine that indexes a collection of files on my hard drive. I have a script that takes a query `query = raw_input()` and outputs a set of file names. 

I want the file names to be clickable hyperlinks that open the file when the user clicks on them.

How do I do this? My interface (if this requires an interface) would just be a search box and an output box.

This appears to be possible in [`MATLAB`](http://blogs.mathworks.com/community/2007/07/09/printing-hyperlinks-to-the-command-window).

Also, if there's an IDE that allows this, that would be acceptable (but not preferable).