The BEST way would be to have an external server or drive on a network and have both machines choose a folder on that drive as their itunes library. Or, if you always have your mbp with you, open file sharing on it and have the imac choose the mbp's library as its library as well. Preferences-->Advanced in iTunes, click "change" for the folder location.