Correctly encode blobs for python3, fix related tests
Use bytes literals for joining routing key components
Handle iterating filter() result in python3