fixing Modelgen: tuple index out of range error if input is list of 3D files