I would like to download a single file from a GitHub repository. In bash, you could do something like this:
curl -kLSs "https://github.com/mikolalysenko/lena/archive/master.tar.gz" | tar xz --wildcards '*lena.png' --strip-components=1`
to download and save this file in the current working directory. How would one do this using only Python (aka. not calling a bash command)?