#356: logic_loader.php, create JSON 'data' before python