It only works because the split('.')[0] happens to return a string with a single digit in it, so it's worse than just overkill, but fine. ;-)