Third party library behaves differently in unreal

Yes I loaded the python in build.cs and then include/call it in an actor class function