REPLCompletions: simplify complete_symbol
Improve REPL completion after using keyword

also detect "import" keyword