Repository: instanseg/instanseg (language: python)

Issue:
Move the code from `instanseg/instanseg.py` to `instanseg/__init__.py`
When I work with the [editable install](https://setuptools.pypa.io/en/latest/userguide/development_mode.html) of `instanseg` I get this error when running `from instanseg.utils import utils`:

```
ModuleNotFoundError: No module named 'instanseg.utils'; 'instanseg' is not a package 
```

The reason is that Python tries to import from the `instanseg.py` file and not from the `instanseg` package (folder). This can be easily fixed by moving all the code that is in [ `instanseg/instanseg.py`](https://github.com/instanseg/instanseg/blob/main/instanseg/instanseg.py) to [`instanseg/__init__.py`](https://github.com/instanseg/instanseg/blob/main/instanseg/__init__.py_) and removing the` instanseg/instanseg.py` file, which is also the best practice. 

Everything else would work the same. In general, it is better to avoid creating a Python file inside a package with the same name as the folder because the folder gives the name to the package. When you want to import code with `from instanseg import InstanSeg` the code for the class `InstanSeg` should reside in the `__init__.py` file. 

I would already have a PR to open, but I cannot tell if my suggestion would break something else. If you tell me this is possible I can open the PR immediately. Thanks
Move the code from `instanseg/instanseg.py` to `instanseg/__init__.py`
When I work with the [editable install](https://setuptools.pypa.io/en/latest/userguide/development_mode.html) of `instanseg` I get this error when running `from instanseg.utils import utils`:

```
ModuleNotFoundError: No module named 'instanseg.utils'; 'instanseg' is not a package 
```

The reason is that Python tries to import from the `instanseg.py` file and not from the `instanseg` package (folder). This can be easily fixed by moving all the code that is in [ `instanseg/instanseg.py`](https://github.com/instanseg/instanseg/blob/main/instanseg/instanseg.py) to [`instanseg/__init__.py`](https://github.com/instanseg/instanseg/blob/main/instanseg/__init__.py_) and removing the` instanseg/instanseg.py` file, which is also the best practice. 

Everything else would work the same. In general, it is better to avoid creating a Python file inside a package with the same name as the folder because the folder gives the name to the package. When you want to import code with `from instanseg import InstanSeg` the code for the class `InstanSeg` should reside in the `__init__.py` file. 

I would already have a PR to open, but I cannot tell if my suggestion would break something else. If you tell me this is possible I can open the PR immediately. Thanks


Discussion / hints:

Fix patch:
diff --git a/instanseg/__init__.py b/instanseg/__init__.py
index a97927b..fd0e2f8 100644
--- a/instanseg/__init__.py
+++ b/instanseg/__init__.py
@@ -1,1 +1,1 @@
-from .instanseg import InstanSeg
+from .inference_class import InstanSeg
diff --git a/instanseg/instanseg.py b/instanseg/inference_class.py
similarity index 99%
rename from instanseg/instanseg.py
rename to instanseg/inference_class.py
index 4b8ab04..2ff3730 100644
--- a/instanseg/instanseg.py
+++ b/instanseg/inference_class.py
@@ -114,7 +114,7 @@ def __init__(self,
         self.verbosity = verbosity
         self.verbose = verbosity != 0
 
-        headers = {'Authorization': 'token ' + github_token}
+        headers = None if github_token is None else {'Authorization': 'token ' + github_token}
         if isinstance(model_type, nn.Module):
             self.instanseg = model_type
         else:


Test patch:
diff --git a/tests/test_instanseg.py b/tests/test_instanseg.py
index f78e66d..5d82a9d 100644
--- a/tests/test_instanseg.py
+++ b/tests/test_instanseg.py
@@ -1,5 +1,5 @@
 from pathlib import Path
-from instanseg.instanseg import InstanSeg
+from instanseg import InstanSeg
 import torch
 import sys