def install_module_from_github(username, package_name, version):
    """
    Install python module from github zip files
    """
    cmd_string = """
        echo Installing {1} {2} ...
        wget https://github.com/{0}/{1}/archive/{2}.zip -o $TMPDIR/{1}.zip
        mkdir $TMPDIR/{1}_src
        unzip $TMPDIR/{1}.zip -d $TMPDIR/{1}_src
        rm -f $TMPDIR/{1}.zip
        mv $TMPDIR/{1}_src/{1} $STASH_ROOT/lib/
        rm -rf $TMPDIR/{1}_src
        echo Done
        """.format(username,
                   package_name,
                   version)
    globals()['_stash'](cmd_string)

    Install python module from github zip files
    
bin/scp.py