Im trying to make a attribute characteristic randomiser for my nephews board game and I\'m trying to write the attributes to an external file so that he can use them later. when
Not sure about what you expect str('Speed -', str(speed)) to do.
str('Speed -', str(speed))
What you want is a string concat:
speedE2 = 'Speed -' + str(speed) # replace other lines also
You can also use string formatting and not worry about type casts:
speedE2 = 'Speed -{}'.format(speed)