To fill you in, Pingyao is a walled Ming dynasty city - similar, in some ways, to Jaisalmer in Rajasthan. Pingyao's inhabitants live and work in the old buildings, and either follow their old trades or are directly involved in the commercial aspects of tourism. Some effort is currently being made to renovate some buildings, but a great deal of work is still needed. The risk is that Pingyao will become a theme park, if that hasn't happened already.