Use dict instead of {} in fromkeys calls

Per @wasade's suggestion