bittorrent API for peersim