fixed bug in script to generate courses json