Made owlin.py compatible with the JSON POST API