Python serial; reduced table size