I think all boolean options should be stored as 1 or 0 because that's the way Python stores booleans.
How about adding a helper function:
```java
  private getBooleanValue(Object value, boolean defaultValue) {
    return entry.getValue() == null ? defaultValue : ((Boolean) entry.getValue() ? 1 : 0);
  }
```

or something like that (which also handles the null case if needed).