added python mode for sage files