St Johnstone boss Tommy Wright is optimistic that a new deal can be agreed to keep Steven MacLean at the club.