Changed the return type of smo_user::get_learn_periods() and implemented it