Python 2.6 compatibility (for pygmee.tribler.org)
Fix 0-hop and 1-hop tunnels