Python is f*ing awesome. I realize it every single day. Here is the issue that I faced today:

Problem
From a Python script, I wanted to open a URL in the current tab of Firefox. How to do that?

Difficulty
In the standard library there is a module called webbrowser. However, it only has these functions: open, open_new, and open_new_tab, i.e. you can open a URL in a new window or in a new tab but not in the current tab!

Solution
After doing some research, I found a Firefox add-on (MozRepl) that allows you to program Firefox and other Mozilla-based applications from the inside. Here are some links: