Add fix for trying to generate alignment on missing worksheet
Put command in python interpreter locals not globals