First of all This works perfectly in x32 python, but fails in x64 python with the following error
OSError: exception: access violation reading 0xFFFFFFFFFFFFF