I decided to try it now as I had a bit of time. I made the following change:
Code:
#webbrowser.open(uri)
os.system("xdg-open \"" + uri + "\"")
And obviously had to import os.
This works like a charm now.
Perhaps add an option that enables people to set the used method? I could see if I can do it and send you a pull request? (when i have the time, which might be next year,

)