added try catch for 2.x vs. 3.x support of urllib