Not an issue in the repo but with the API documentation.
The documentation states correctly that Messages From is an object:
The Python example in the same spot, however, incorrectly uses an List wrapper around the Messages From object.
Please correct the code sample.