PEP8, using with statements and making the num() function a little more intuitive.
Whoops! Didn't mean to break that.
Merge pull request #1 from nathan-hoad/master

PEP8, using with statements and making the num() function a little more ...