python script to check availability of courses