make diymcmc work with Py3K
fix URLError
Merge pull request #1 from jakevdp/py3k_fix

make diymcmc work with Py3K