Separated Python JSON-to-CSV script from notebook