Since you're already importing httplib, could use the OK constant instead of 200.