The script is based on a gist posted by @averrin and has been modified to print the output according to the format expected by qutebrowser, ready to be pasted into configtypes.py.