Dynamic Scheduling of Open Multiclass Queueing Networks in a Slowly Changing Environment