fix for sertpent on new version of numpy