Not sure, if it return -1 on error. 
http://docs.python.org/2/c-api/long.html