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