Add PyAccessMixin

This allows you to get a serialized version outside of the API.