Port deck to python3.4 enum and port to pytest