Miscellaneous code for processing IPUMS data in python