fixed a bug where xattr python scrpt would be triggered needlessly when no file was loaded