Add two Python files
Improved code