Update utils.parse_size

Update comment and use assert instead of if statement.