Also add a Python serializer filter

Follow-up additions to pull req #7866.