You can make use of the TRANSFORM function to make use of a UDF written in Python. The detailed steps are outlined here and here.
TRANSFORM