Is there a reason why not to simply import this class at the top of the file rather than inside each function?