json and py fixes for defaults and drupal