I did as you requested and here is the contents of /tmp/alfred.txt.
profile=~/Library/Application Support/Firefox/Profiles/*.default
places=/Users/wagner/Library/Application Support/Firefox/Profiles/laurr8cc.default/places.sqlite
I recalled I installed a version of python when I took a python course at one point. I compared my version against a fresh install of 10.8 and found I had 2.7.1 and the fresh install had 10.7.2. Following instructions on python.org, I removed the now outdated and non-stock 2.7.1 version and confirmed I am back to stock. When I run python bookmarks.py as i did before doing this, I get the following, different output.
python bookmarks.py "~/Library/Application Support/Firefox/Profiles/laurr8cc.default" "coke"
Traceback (most recent call last):
File "bookmarks.py", line 71, in <module>
alfred.write(alfred.xml(results(db, query), maxresults=_MAX_RESULTS))
File "/Users/wagner/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.7D2FE02B-9FB8-45B1-AE1F-DDFE468A3D4A/alfred.py", line 84, in xml
for item in itertools.islice(items, maxresults):
File "bookmarks.py", line 41, in results
yield alfred.Item({u'uid': alfred.uid(uid), u'arg': url}, title, url, icon(db, faviconid))
File "bookmarks.py", line 20, in icon
data = db.execute(u'select data from moz_favicons where id=%d' % faviconid).fetchone()[0]
TypeError: 'NoneType' object is not subscriptable