[motorsport] Fix on Python 3