Rule __str__ is python 3 compatible