improved for common objects in python