Replaced todict with to_dict in edtech.py