Python Hash String To Int