I have a trouble with using ctypes lib in my python script. Here is my code (found on the Internet):
if __name__ == \"__main__\": from ctypes import *
ctypes is not supported in Jython 2.5.1. There has been some experimental support added in 2.5.2, but it's certainly nowhere near complete. Maybe you'll have better luck using JNA with Jython instead. There's a short tutorial here.