#537 - fixes type error
Update data.pyx
Merge pull request #545 from jdangerx/staging

#537 - fixes type error