If you're going down that road, you're probably better off basing your work on
Boost Python[
^]
As for your error:LINK : fatal error LNK1104: cannot open file 'python27.lib'
You need to tell the linker where to find the library.
Linker->General->Additional Library Directories
Best regards
Espen Harlinn