Changed the variable 'all' to 'new_all' as it all() is a Python built-in.