Testvector generator for general testvectors in Python