changed to dir() from __dir__(), python3.2 complained