Add register.py to solve the issue

It could fixed the issue
python 2.7 is requried, which is not found in registry

Moreover, it added drawlines.py by using matplotlib