Once not adept in comedy, Mammootty tirelessly chiselled him