Port chains were being returned that could not be cast to int(). Casting to float() seems to work.