Python and Sage programs