separate shared functions and rewrite importarFile1.py