Fix memoryview bug on py3k.
Fix coverage and simplify code.
Fix test is None case.
Merge pull request #1 from mcmtroffaes/feature/fix-memoryview

Fix memoryview bug on py3k.