I am writing a python script that imports ssl library. I need to create ssl socket. However, I find that I will need to use a modified version of openssl library. The author of the modified version told me that the underlying implementation of ssl module is using the openssl library. The author provided me with a file named ssllib.c. I searched the folder of the openssl library that I installed: openssl-0.9.8k_X64 but I could not find any ssl_lib.c file. Also, the author referring to openssl by openssl-1.0.1e which is another version than mine. 
My question: How can I compile my python script with a modified version of openssl? Please, consider that I am using Windows x64 system and Python 2.7.
You'll need to install the modified OpenSSL.
Python merely has bindings, which will then call the functions in the compiled OpenSSL libraries.
If the modified OpenSSL library is installed and in your path completely replacing the original OpenSSL library, then Python will "use" it.
This assumes that the modified library is in fact compatible with the original OpenSSL.
On a side-note, using modified cryptographic libraries is a terrible idea from a security perspective.
How can I use a modified openssl library (written in C) in my python code?