Added conversion functions between sage and other data
Merged with master