Newer PyYAML versions require Python 3.5. Python 3.4 is EOL for some time and even 3.5 reached EOL recently. So just switch to that as minimum version.