Append current directory to the python path

This is required to find items from the current working directory which
isn't added when running from an installed script versus running from
a stdlib script.
Escape attribute contents