Stop Blenders unwrap algoritm to rotate islands?

Hi!

I am building an addon that will make it possible to cut the islands in realtime in the uv editor. The idea is to be able to skip the seam step completely. I have already got this function to work, the problem is that as soon as you unwrap something in Blender the islands get’s rotated. Does anyone know how to solve this?