I also have problem with rotation and came across this post looking for a solution. Basicly i don’t get the rotation i expect(ed).
EDIT I use the Python from this post.
EDIT2 Solved! I totally missed.