def list_user_homedir(): for p in pwd.getpwall(): if p[6] == '/bin/bash' and p[0] not in users_blacklist: users[p[0]] = p[5]