Python 3 compatibility: Make sure sequences passed to concatenate() are lists