fix data replacements, automatic encoding and padding of strings, add missing pyyaml to requirements