I have this piece of code in C++ that I want to convert to Python:
int main() { char buf[21] = "211000026850KBAALHAA"; std::cout << re