simplify and correct python ctypes-based wrapper
Merge pull request #9 from olsonse/master

simplify and correct python ctypes-based wrapper