minor bugfixes and improvements to rugby.py