Refactor astropy.nddata, astropy.stats, and astropy.time to use six instead of 2to3

@mdboom - I should have checked with you before doing this, so if you've already done one or all of them I'll remove the commits :) I just wanted to practice to see if I understood ``six``. Could you let me know if you disagree with any of the changes?