Imported from https://github.com/csieber/pydashsim