BUG: Fixes server encoding (type and function)

Also fixes setup.py problem in which it listed the pysmartt package
as a namespace_package, which caused errors when trying to import
it after installing via pip.