Fix 'true'/True oddity

- A bit gross (series of filters) but allows us to use booleans in Python, and
  strings in Javascript