Avoid mutable default arguments. See http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments for details.