I recently got a Broadlink wifi remote. I have been playing around trying to send commands to it with python. I found code on github that does most of what I need. It looks like the device itself doesn't learn any remote codes. It is all in the app. The code I found can send codes to the device and get codes from learning mode.
I have a bunch of buttons programmed in the app already. I wanted to see if I could get those codes. I think I got them today. The app, called eControls, allows you to backup your setup. Today I was able to get my backup file from their backup site.
Tomorrow I will try to use the codes from the backup.