Make sure get_definitions returns list in Python 3