Make migration 0018 Python 3.2 compatible