It probably makes sense to use dict() instead of {} here mostly because that's what you're using everywhere else just for consistency's sake. It's also about 33% more efficient, but that's not really important since it's so fast.