Added a __hash__ method for python 3
Added workaround in test cases for deprecated  assertItemsEqual method
Added __lt__ method to Host to allow sorted to work in Python 3, fixed __str__ method to return a string.