Defeating legacy Python code-base