Used codecs module when handling files.
Added green/red light img post-run.