There are two things you need to do.
pydev is a bit weird sometimes. The fun part is even if pydev says that there's an import error, it's not like Java -- executing your code might still work! Because python isn't a compiled language, pydev is only guessing based on the inputs it has.