change numeric to python3 style and module import