Animal AI using python

Is there any way to develop animal’s AI (ML or RL) using python and connect that AI to unreal engine project. I need to develop this Animal AI from Python instead of Blueprint. but I haven’t any Idea where to start.