moved scipy imports inside the functions to avoid compatibility errors in Abaqus