I believe what you're looking for is
GetString(pbasename, -1, ASCSTR_UNICODE)
assuming pbasename is a pointer to the memory location of the unicode string. Note that this returns a string of type 'str' (not unicode) so you wouldn't have to convert modname to unicode.