better checking whether repo's have changed (branch switching too), let the function return this instead of using a global
excecute installDependencies instead of just fixing permissions
fixed some PEP8 styling