PY3: record is a kwarg argument for warnings.catch_warnings
PY3: long is no longer a type in Python 3