This documentation should be specific about the type.  You can use `:rtype:` to specify this.  Since a finished message is bytes I think the return type should probably be `bytes`?

Also the `None` case should be mentioned here.