fix whitespace/tab issues and some PEP cleanups
Added tarball downloads
Fix missing branches_url if tutorial is located on a filesystem