I would try a search of the s/c forum here and see what turns up for those codes. Trans. section really isn't a good place to ask about engine related codes. Would get better attention there

BTW, the p0171 sounds like it could be a vacuum leak. Check all your vac. connections.