There seems to be an extra parenthesis in here. Shouldn't it be:

```python
sys.stdout.write('inserted document with id {} into PyPLN\n'.format(_id))
```