test_shape: Skip tests if the shapely import fails

This will skip the shapely-related tests on Python 3