Testing API's functions with Python3