added latest to query ignoring architectures
replaced PyInt_AsLong with PyLongAs_Long
replaced PyInt_FromLong with PyLong_FromLong
removed define PyString_AsString in pycomp.h