um, I don't actually remember the reason for the slicing haha, I'd have to go back and look, I stole this code from my PyNaCl project.