Derp, python3 sys.stdin is unicode and communicate stdin is bytes.