corrected some module imports, as py3.2 does not seem to like them.