'map' object has no attribute 'append'

I randomly see this error message and it blows up under Python 3 sometimes. I can't quite recreate the conditions though.