Replaced depreciated PyFITS new_table() function with Erik Bray's suggestion.