Added method for setting contacts
Fixed compatibility with python 2.6, closes #50