Improving optimize and pyftsubset processes. Thanks to noto #405