Added support for booleans.

Booleans are passed as 'TRUE' or 'FALSE' which need to be converted to a format Python can use.