So Im working with def functions for the first time and the documentation looked simple enough. and got a few examples. However I cant relate it back to my code.
I have 2 files langpy and test1:

test1.py

```
import time
import thread
import os
import sys
import ctypes
import wmi
from langpy import lang
from langpy import port
string = ""

class service_test:
        def __init__(self):
                thread.start_new(self.do_something, tuple())
                while True:
                        if getattr(sys,'stopservice', False):
                                sys.exit()
                        time.sleep(0.3)

        def do_something(self):
                print(str(lang))
                print(str(port))
                while True:
                        fname = 'c:\\\\test.txt'
                        f = open(fname, 'a')
                        f.write(str(time.time()))
                        #f.write("%s /n/r") % string
                        f.close()
                        time.sleep(1)

if __name__ == "__main__":
        tst = service_test()

```

langpy:

```
import os
import time
import ctypes
import wmi

def lang(self, language):
        windll = ctypes.windll.kernel32
        language = str(windll.GetUserDefaultUILanguage())
        return

def port(self, Ardport):
        Ardport = "not found"
        c = wmi.WMI()
        wql = "Select * From Win32_USBControllerDevice"
        for item in c.query(wql):
                        s = str(item.Dependent.Caption)
                        strfind = "Raptor"
                        if (s.find(strfind) >= 0):
                                Ardport = str(item.Dependent.Caption)
        return

```

I want it to return the strings from `Ardport = str(item.Dependent.Caption)` and `language = str(windll.GetUserDefaultUILanguage())` in the test1 code, but it keeps printing 

```
function lang at 0x027479F0
function port at 0x027503B0

```

(they have `<>` on the outside as well but forum format wont include them)

I have an unedited version of langpy (without defining anything) which retunes the correct str

```
import os
import time
import ctypes
import wmi
windll = ctypes.windll.kernel32
lang = str(windll.GetUserDefaultUILanguage())
print(lang)
Ardport = "not found"
c = wmi.WMI()
wql = "Select * From Win32_USBControllerDevice"
for item in c.query(wql):
        s = str(item.Dependent.Caption)
        strfind = "Raptor"
        if (s.find(strfind) >= 0):
                Ardport = str(item.Dependent.Caption)
print (Ardport)

```