I seem to have hit a bit of a problem with PEP 8.
I am using list comprehension which is longer than 79 characters long. So my text editor is screaming at me to do s
if you want to stick strictly to pep8 then the hanging indent is your friend.
return [ (i['user_id'], i['id']) for i in j['collection'] if i and i['user_id']]