Not that i kniw. However, you should notice that the difference between .sage and .py files is a thin preparsing difference to ease daily use (like ^ for powers instead of **). Also, Sage source is written with .py files, not .sage file. So, if you plan fo write a module, let me just suggest to transform your .sage file into a .py module. The preparse function is a tool to look at.
Not that i kniw. I know. However, you should notice that the difference between .sage and .py files is a thin preparsing difference to ease daily use (like ^ for powers instead of **). Also, Sage source is written with .py files, not .sage file. So, if you plan fo write a module, let me just suggest to transform your .sage file into a .py module. The preparse function is a tool to look at.