Update fetchUtils.py

Added casting to size check to ensure validity on all platforms