Remove trailing whitespace
Remove .rstrip() as it was already called

In the line above it.
Convert output from bytes to a string
Merge pull request #556 from hashdist/pkgconfig

Fix pkg-config-wrapper to work with Python 3