Convert config['tries'] into integers (otherwise the comparison between an integer and a string always returns True. Solve the problem that when hopTimeout() is called, self.hops[-1] may not be the old hop which sets callLater().
Merge pull request #8 from ltfish/master

Fixed two small bugs