Add unittest to exercise python compatibility