Fixed imports and undefined variables

Prompted by #1790, I ran pyflakes and (searching through the noise) I found a few more issues.

@mdboom - I got the following error:

```
io/votable/tree.py:2542: undefined name 'pos'
```

but wasn't sure how to fix that one?

Also, can you confirm the change to ``angles.py`` is correct?