|   | 1 |  initial version  | 
Why not just:
<script type="text/x-sage">
    load('https://rawgit.com/path_to_the_file.py')
</script>
See a (temporary) example at the page: https://sagedebianlive.metelu.net/tmp/plop.html with python file https://sagedebianlive.metelu.net/tmp/plop.py (i do not have a github account, but it shoud work exactly the same).
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.