some fix for tribler
fix rebase problems
some fix
use dispersy.send_packets() instead of endpoint.send()