fix some issues with importing code on backend (right fix will be to convert to typescript, but that can wait).
fix some issues with importing code on backend (right fix will be to convert to typescript, but that can wait).

sagemathinc/smc,sagemathinc/smc,sagemathinc/smc,sagemathinc/smc