Python implementation for ISO 6336