Fixing imports in File objects