Potential for for issue #8

Suggested patch from code at https://github.com/mjdorma/yara-ctypes/issues/8 in an easy to merge pull request.