Added local imports to deal with '.' imports

the output is now the same as isort's import style. :)