title: Colab + sedona: TypeError: 'JavaPackage' object is not callable
body: <p>Using the guide here: <a href="https://sedona.apache.org/setup/install-python/" rel="nofollow noreferrer">https://sedona.apache.org/setup/install-python/</a></p>
  <p>Trying to use Apache Sedona in python on google colab. However, following the guide results in a <code>TypeError</code>. Any ideas?</p>
  <pre class="lang-py prettyprint-override"><code>!pip install apache-sedona[spark]
  
  from pyspark.sql import SparkSession
  
  from sedona.register import SedonaRegistrator
  from sedona.utils import SedonaKryoRegistrator, KryoSerializer
  
  spark = SparkSession. \
      builder. \
      appName('appName'). \
      config(&quot;spark.serializer&quot;, KryoSerializer.getName). \
      config(&quot;spark.kryo.registrator&quot;, SedonaKryoRegistrator.getName). \
      config('spark.jars.packages',
             'org.apache.sedona:sedona-python-adapter-3.0_2.12:1.2.0-incubating,'
             'org.datasyslab:geotools-wrapper:1.1.0-25.2'). \
      getOrCreate()
  
  SedonaRegistrator.registerAll(spark)
  </code></pre>
  <p>Result:</p>
  <pre class="lang-sh prettyprint-override"><code>TypeError                                 Traceback (most recent call last)
  
  &lt;ipython-input-73-3e0f20bf8072&gt; in &lt;module&gt;()
       11     'org.apache.sedona:sedona-python-adapter-3.0_2.12:1.0.0-incubating,'
       12     'org.datasyslab:geotools-wrapper:geotools-24.0').getOrCreate()
  ---&gt; 13 SedonaRegistrator.registerAll(spark)
       14 dfx = spark.sql(&quot;SELECT ST_PolygonFromText('-74.0428197,40.6867969,-74.0421975,40.6921336,-74.0508020,40.6912794,-74.0428197,40.6867969', ',') AS polygonshape&quot;)
       15 dfx
  
  1 frames
  
  /usr/local/lib/python3.7/dist-packages/sedona/register/geo_registrator.py in registerAll(cls, spark)
       41         spark.sql(&quot;SELECT 1 as geom&quot;).count()
       42         PackageImporter.import_jvm_lib(spark._jvm)
  ---&gt; 43         cls.register(spark)
       44         return True
       45 
  
  /usr/local/lib/python3.7/dist-packages/sedona/register/geo_registrator.py in register(cls, spark)
       46     @classmethod
       47     def register(cls, spark: SparkSession):
  ---&gt; 48         return spark._jvm.SedonaSQLRegistrator.registerAll(spark._jsparkSession)
       49 
       50 
  
  TypeError: 'JavaPackage' object is not callable
  
  </code></pre>