testcases for Python code