Update fred/api.py

children method fix