addresses @paulromano comments for python syntax and ctest version