I am trying to publish a pub/sub message from a cloud function in python3.7. The message is a list object which i am trying to encode and publish to the pub/sub topic