Fixed bug where logging copied compiled trigger file (.pyc) instead of the human readable .py