One obvious approach is to recode by hand the existing logic into Python. However, this is not a scalable approach.
I would like to know if there are existing tools, like a generalized transpiler that parses language X into language Y.
https://en.wikipedia.org/wiki/Source-to-source_compiler
I have a reasonable understanding on mapping common Base SAS language constructions into Python. See:
www.pythonforsasusers.com
Absent such a generalized tool, what advice do you have to help automate such an effort?