(py3 only; needed by www/trac [WIP upstream] and security/pwntools [available upstream but port needs updating])