Switch to using py.test

Missed the email for this, sorry. Now this PR has been merged I'll need to do a new PR for this and the removal of test_unicode_open. I'll try to get to this today but if I don't it'll be the end of the week as I'm away 2 days. Sorry.