Add an implementation for https://s.apache.org/batched-dofns to the Python SDK. Imported from Jira [BEAM-14213](https://issues.apache.org/jira/browse/BEAM-14213). Original Jira may contain additional context. Reported by: bhulette.