Added Python file and testcases file to automate testing