Hi,
Vineeth K
There is no direct option for this but you can create some custom java like this:https://docs.mendix.com/howto8/logic-business-rules/extending-your-application-with-custom-java/ and call the python script from java like described here: