Here's a pile of python code for tools I used and tools I never quite finished.
creates list of open tabs and histories