Change to urllib and added timeout