Fixed imports and undefined variables
Added regression test for angle formatting in radians with precision
Remove u'' for compatibility with Python 3.2
Merge pull request #1792 from astrofrog/fix-import-related-bugs

Fixed imports and undefined variables