Step 2. Covert require and local vars to import statements