Added check to e function in pywindsub