Making string concatenation to work on Python 2 and 3