INT-2859 fixed Python OOM Error