Extending Unicode functionality in Python