short python setup to load a file, and an event