How to map FDA National Drug Codes (NDC) to drug classes

This article goes over the operations performed by my n2c script. Here we map NDCs to ATC drug classes using RxNorm, in Python.