basics settings and structure mode placing
pyflakes fixes
Merge pull request #2961 from digi604/fix-2904

basics settings and structure mode placing
fixes #2965
Merge pull request #2966 from digi604/fix-2965

fixes #2965 (empty title in publish)