Change to work with Beautiful Soup 4