use object instead of str to allow both python 2 and 3 to work