Updated tobytes to tostring method as per latest PIL available on effbot.
Added hasattr check for backward compatibility.
Merge pull request #17 from baali/master

Updated tobytes to tostring method as per latest PIL available on effbot...