Fix Python 3.4 build by moving all declarations before code