This code is currently supposed to run on python 2 only.