The movie based on the beloved British TV series pulled in $31 million over the weekend, more than $10 million ahead of its closest rivals.