Device Registration application in Python