ipsec: make tests support python3