objects used as default values in python are shared across function calls