 -sharedLib = "cspice.dll" if host_OS == "Windows" else "spice.so"
 -sitePath = os.path.join(os.path.dirname(__file__), sharedLib)
 -libspice = CDLL(sitePath)
++
++if host_OS == "Windows":
++    from ctypes import windll
++    loader = windll
++else:
++    from ctypes import cdll
++    loader = cdll
++
 +sharedLib = "cspice.dll" if host_OS == "Windows" else "libcspice.so"
-+loader = windll if host_OS == "Windows" else cdll
 +libspice = loader.LoadLibrary(sharedLib)
  
  __author__ = 'AndrewAnnex'

---
 getspice.py                      | 156 -------------------------
 setup.py                         | 240 +++++++--------------------------------
 spiceypy/utils/libspicehelper.py |   9 +-
 3 files changed, 44 insertions(+), 361 deletions(-)
 delete mode 100644 getspice.py

diff --git getspice.py getspice.py

+    extras_require={'testing': ['pytest']}
+)
diff --git spiceypy/utils/libspicehelper.py spiceypy/utils/libspicehelper.py
index 30f7a0a..8cff031 100644
--- spiceypy/utils/libspicehelper.py
+++ spiceypy/utils/libspicehelper.py
@@ -22,16 +22,22 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 """
 
-from ctypes import CDLL, POINTER, c_bool, c_int, c_double, c_char, c_char_p, c_void_p
-import os
+from ctypes import POINTER, c_bool, c_int, c_double, c_char, c_char_p, c_void_p
 import platform
 from . import support_types as stypes
 from . import callbacks
