Please, change this line to:

```python
Marshaller.dispatch[long] = lambda _, value, write: write(
    '<value><i8>%d</i8></value>' % v
)
```

And add a comment explaining the problem and the "hack" before it.