Moved python test code after user code to make tampering more diffucult