fixed #23 registration demo now works with Python 3.3+