Copy text to clipboard fails

Issue reported by  Eyas Kopty <e.kopty@yahoo.com>

from ldtp import *
print "Notepad Test Started"
launchapp(str("notepad"))
print waittillguiexist('*-Notepad')
print activatetext("*Notepad", "#15")
settextvalue("*Notepad","#15", "Set this text")
appendtext("*Notepad", "#15", "Sample Text")
copytext("*Notepad", "#15",1)

Traceback (most recent call last):
  File "untitled1.py", line 15, in <module>
    copytext("*Notepad", "#15",1)
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\__init__.py", line 403,
in copytext
    return _remote_copytext(window_name, object_name, start, end)
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 66, in
__call__
    return self.__send(self.__name, args)
  File "C:\Python27\lib\xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 187, in request
    raise e
xmlrpclib.Fault: <Fault 0: 'Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.'>

QA Notes:
Testing Done: With the above test script on Windows 7 SP1 64-bit
Documentation Notes:
Bug Number:
Reviewed by:
Approved by:
Mailto: