Fix task ratio

This would seem to fix: #123. Also simplified inspectlocust a bit which should make it easier to test. Also fixed a test in master that is currently broken on python 2.6