In some files, lists are used as default arguments which can lead to bugs in python. Replace with None and then set to an empty list inside the function.