Python code in Dash

Hello
How can use a python code to read files I am uploading in dash, the files are unique, they are not CSVs or XLS, we call them opus and we use a specific package to read them., this is a sample python code I want to use in dash import opusFC dbs = opusFC.listContents(file to read) data = opusFC.getOpusData(file to read, dbs)