Change indentation from 2 spaces to 4 spaces
use requests library instead of raw urrlib2, change Python API to more closely match upstream API