Ahmed Hassan gave Ahly a 38th-minute lead , Lassina Karim levelled in first half stoppage time , Ousmaila Baba edged Cotonsport in front on 63 minutes and captain Shady Mohamed restored equality from a last-minute penalty .