Added an extra priority values to add_step.

The extra priority is needed because of a difference between python 2 and python 3. In Python 2 it was possible to compare two methods, but python 3 gives an "unorderable types: method() < method()" error. This will come up if the priority queue contains two entries that are equal.