Python method "compact" should accept two parameters

I get the following error while compacting my JSON data:

TypeError: compact() takes exactly 1 argument (2 given)

I fixed this in my fork using

```python
def compact(self, text):
```
instead of 
```python
def compact(text):
```