tests: Make port function of python version
tests: Make port function of python version

That should avoid random collision when running the tests
in parallel.

Synss/python-mbedtls,Synss/python-mbedtls