tests: Use MAX_SCRIPT_ELEMENT_SIZE from script.py
tests: Use MAX_SCRIPT_ELEMENT_SIZE from script.py

p2p_segwit.py and test_framework/script.py both define a constant for
MAX_SCRIPT_ELEMENT_SIZE (=520 bytes), which is redundant.  This change
uses the constant defined in the script.py module for p2p_segwit.py.

pataquets/namecoin-core,particl/particl-core,jlopp/statoshi,mitchellcash/bitcoin,apoelstra/bitcoin,Kogser/bitcoin,vertcoin/vertcoin,mitchellcash/bitcoin,jlopp/statoshi,bitcoin/bitcoin,tecnovert/particl-core,BTCGPU/BTCGPU,monacoinproject/monacoin,litecoin-project/litecoin,Kogser/bitcoin,lateminer/bitcoin,thrasher-/litecoin,alecalve/bitcoin,thrasher-/litecoin,thrasher-/litecoin,sipsorcery/bitcoin,DigitalPandacoin/pandacoin,kazcw/bitcoin,bitcoin/bitcoin,peercoin/peercoin,particl/particl-core,Kogser/bitcoin,fujicoin/fujicoin,namecoin/namecoin-core,RHavar/bitcoin,ericshawlinux/bitcoin,n1bor/bitcoin,apoelstra/bitcoin,midnightmagic/bitcoin,untrustbank/litecoin,rnicoll/bitcoin,tjps/bitcoin,lbryio/lbrycrd,Christewart/bitcoin,r8921039/bitcoin,ElementsProject/elements,mm-s/bitcoin,thrasher-/litecoin,midnightmagic/bitcoin,nikkitan/bitcoin,achow101/bitcoin,kazcw/bitcoin,jambolo/bitcoin,n1bor/bitcoin,CryptArc/bitcoin,alecalve/bitcoin,kallewoof/bitcoin,mitchellcash/bitcoin,GroestlCoin/GroestlCoin,vertcoin/vertcoin,namecoin/namecore,Christewart/bitcoin,qtumproject/qtum,Sjors/bitcoin,andreaskern/bitcoin,kazcw/bitcoin,alecalve/bitcoin,h4x3rotab/BTCGPU,jnewbery/bitcoin,ericshawlinux/bitcoin,jonasschnelli/bitcoin,bitcoin/bitcoin,r8921039/bitcoin,lbryio/lbrycrd,GroestlCoin/GroestlCoin,jamesob/bitcoin,digibyte/digibyte,untrustbank/litecoin,vmp32k/litecoin,EthanHeilman/bitcoin,Christewart/bitcoin,MarcoFalke/bitcoin,andreaskern/bitcoin,GroestlCoin/bitcoin,OmniLayer/omnicore,Xekyo/bitcoin,digibyte/digibyte,domob1812/namecore,pataquets/namecoin-core,jtimon/bitcoin,BTCGPU/BTCGPU,bitcoinknots/bitcoin,jlopp/statoshi,gjhiggins/vcoincore,gjhiggins/vcoincore,AkioNak/bitcoin,kallewoof/bitcoin,wellenreiter01/Feathercoin,Xekyo/bitcoin,sipsorcery/bitcoin,jlopp/statoshi,namecoin/namecore,rawodb/bitcoin,prusnak/bitcoin,dscotese/bitcoin,kallewoof/bitcoin,BTCGPU/BTCGPU,jtimon/bitcoin,jnewbery/bitcoin,Kogser/bitcoin,rnicoll/bitcoin,monacoinproject/monacoin,yenliangl/bitcoin,ElementsProject/elements,fanquake/bitcoin,GlobalBoost/GlobalBoost,ahmedbodi/vertcoin,dscotese/bitcoin,Sjors/bitcoin,instagibbs/bitcoin,fujicoin/fujicoin,FeatherCoin/Feathercoin,pstratem/bitcoin,OmniLayer/omnicore,fanquake/bitcoin,myriadcoin/myriadcoin,gjhiggins/vcoincore,domob1812/namecore,practicalswift/bitcoin,jtimon/bitcoin,myriadteam/myriadcoin,fanquake/bitcoin,ajtowns/bitcoin,instagibbs/bitcoin,jambolo/bitcoin,FeatherCoin/Feathercoin,jambolo/bitcoin,mm-s/bitcoin,rnicoll/bitcoin,h4x3rotab/BTCGPU,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,DigitalPandacoin/pandacoin,tecnovert/particl-core,GroestlCoin/bitcoin,MeshCollider/bitcoin,OmniLayer/omnicore,yenliangl/bitcoin,peercoin/peercoin,rnicoll/bitcoin,domob1812/bitcoin,Flowdalic/bitcoin,qtumproject/qtum,Christewart/bitcoin,r8921039/bitcoin,kazcw/bitcoin,achow101/bitcoin,sstone/bitcoin,domob1812/namecore,namecoin/namecore,monacoinproject/monacoin,domob1812/bitcoin,MarcoFalke/bitcoin,r8921039/bitcoin,Kogser/bitcoin,ElementsProject/elements,FeatherCoin/Feathercoin,droark/bitcoin,rawodb/bitcoin,namecoin/namecore,pstratem/bitcoin,afk11/bitcoin,sipsorcery/bitcoin,untrustbank/litecoin,rnicoll/dogecoin,tecnovert/particl-core,ElementsProject/elements,cdecker/bitcoin,ahmedbodi/vertcoin,fanquake/bitcoin,guncoin/guncoin,jonasschnelli/bitcoin,apoelstra/bitcoin,MarcoFalke/bitcoin,litecoin-project/litecoin,kazcw/bitcoin,domob1812/bitcoin,myriadcoin/myriadcoin,bespike/litecoin,jamesob/bitcoin,afk11/bitcoin,gjhiggins/vcoincore,fanquake/bitcoin,jambolo/bitcoin,rawodb/bitcoin,droark/bitcoin,prusnak/bitcoin,prusnak/bitcoin,instagibbs/bitcoin,mm-s/bitcoin,litecoin-project/litecoin,digibyte/digibyte,pataquets/namecoin-core,wellenreiter01/Feathercoin,digibyte/digibyte,vertcoin/vertcoin,anditto/bitcoin,monacoinproject/monacoin,namecoin/namecoin-core,RHavar/bitcoin,h4x3rotab/BTCGPU,tjps/bitcoin,Bushstar/UFO-Project,GroestlCoin/GroestlCoin,pstratem/bitcoin,lateminer/bitcoin,untrustbank/litecoin,andreaskern/bitcoin,anditto/bitcoin,rnicoll/bitcoin,nikkitan/bitcoin,fujicoin/fujicoin,myriadcoin/myriadcoin,anditto/bitcoin,MarcoFalke/bitcoin,cdecker/bitcoin,kallewoof/bitcoin,vmp32k/litecoin,myriadteam/myriadcoin,vertcoin/vertcoin,r8921039/bitcoin,jamesob/bitcoin,MeshCollider/bitcoin,instagibbs/bitcoin,RHavar/bitcoin,droark/bitcoin,GroestlCoin/GroestlCoin,MeshCollider/bitcoin,EthanHeilman/bitcoin,thrasher-/litecoin,bitcoin/bitcoin,jnewbery/bitcoin,rnicoll/bitcoin,Kogser/bitcoin,yenliangl/bitcoin,bitcoin/bitcoin,AkioNak/bitcoin,AkioNak/bitcoin,mm-s/bitcoin,n1bor/bitcoin,prusnak/bitcoin,untrustbank/litecoin,litecoin-project/litecoin,wellenreiter01/Feathercoin,AkioNak/bitcoin,andreaskern/bitcoin,bitcoinknots/bitcoin,n1bor/bitcoin,midnightmagic/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,GroestlCoin/bitcoin,DigitalPandacoin/pandacoin,jnewbery/bitcoin,GlobalBoost/GlobalBoost,anditto/bitcoin,afk11/bitcoin,bitcoinsSG/bitcoin,Bushstar/UFO-Project,myriadteam/myriadcoin,jonasschnelli/bitcoin,midnightmagic/bitcoin,bitcoinsSG/bitcoin,ericshawlinux/bitcoin,particl/particl-core,GlobalBoost/GlobalBoost,achow101/bitcoin,vertcoin/vertcoin,RHavar/bitcoin,MeshCollider/bitcoin,vmp32k/litecoin,cdecker/bitcoin,ajtowns/bitcoin,RHavar/bitcoin,bespike/litecoin,myriadteam/myriadcoin,CryptArc/bitcoin,mruddy/bitcoin,pstratem/bitcoin,cdecker/bitcoin,alecalve/bitcoin,particl/particl-core,rnicoll/dogecoin,Flowdalic/bitcoin,Kogser/bitcoin,rawodb/bitcoin,BTCGPU/BTCGPU,guncoin/guncoin,JeremyRubin/bitcoin,sipsorcery/bitcoin,bespike/litecoin,h4x3rotab/BTCGPU,namecoin/namecoin-core,jonasschnelli/bitcoin,tjps/bitcoin,qtumproject/qtum,qtumproject/qtum,OmniLayer/omnicore,yenliangl/bitcoin,domob1812/namecore,Kogser/bitcoin,nikkitan/bitcoin,DigitalPandacoin/pandacoin,ahmedbodi/vertcoin,MeshCollider/bitcoin,ElementsProject/elements,Xekyo/bitcoin,afk11/bitcoin,cdecker/bitcoin,vmp32k/litecoin,sstone/bitcoin,Sjors/bitcoin,jambolo/bitcoin,GlobalBoost/GlobalBoost,droark/bitcoin,GlobalBoost/GlobalBoost,pataquets/namecoin-core,lbryio/lbrycrd,lateminer/bitcoin,Bushstar/UFO-Project,GroestlCoin/bitcoin,myriadcoin/myriadcoin,domob1812/bitcoin,pstratem/bitcoin,guncoin/guncoin,ericshawlinux/bitcoin,mitchellcash/bitcoin,achow101/bitcoin,litecoin-project/litecoin,alecalve/bitcoin,h4x3rotab/BTCGPU,untrustbank/litecoin,jtimon/bitcoin,bitcoinknots/bitcoin,n1bor/bitcoin,EthanHeilman/bitcoin,DigitalPandacoin/pandacoin,litecoin-project/litecoin,anditto/bitcoin,AkioNak/bitcoin,mruddy/bitcoin,kazcw/bitcoin,lateminer/bitcoin,alecalve/bitcoin,qtumproject/qtum,practicalswift/bitcoin,Kogser/bitcoin,apoelstra/bitcoin,CryptArc/bitcoin,mitchellcash/bitcoin,domob1812/namecore,FeatherCoin/Feathercoin,fujicoin/fujicoin,pataquets/namecoin-core,dscotese/bitcoin,BTCGPU/BTCGPU,nikkitan/bitcoin,MarcoFalke/bitcoin,jonasschnelli/bitcoin,practicalswift/bitcoin,digibyte/digibyte,tjps/bitcoin,rnicoll/dogecoin,jamesob/bitcoin,guncoin/guncoin,bespike/litecoin,GroestlCoin/GroestlCoin,h4x3rotab/BTCGPU,namecoin/namecoin-core,Christewart/bitcoin,guncoin/guncoin,Sjors/bitcoin,peercoin/peercoin,droark/bitcoin,droark/bitcoin,namecoin/namecoin-core,prusnak/bitcoin,Christewart/bitcoin,Kogser/bitcoin,jambolo/bitcoin,andreaskern/bitcoin,bitcoinsSG/bitcoin,rawodb/bitcoin,fanquake/bitcoin,MeshCollider/bitcoin,digibyte/digibyte,r8921039/bitcoin,vmp32k/litecoin,jamesob/bitcoin,myriadteam/myriadcoin,wellenreiter01/Feathercoin,Flowdalic/bitcoin,rnicoll/dogecoin,mruddy/bitcoin,lateminer/bitcoin,afk11/bitcoin,jtimon/bitcoin,monacoinproject/monacoin,nikkitan/bitcoin,lateminer/bitcoin,ahmedbodi/vertcoin,ajtowns/bitcoin,sstone/bitcoin,Flowdalic/bitcoin,domob1812/bitcoin,pataquets/namecoin-core,fujicoin/fujicoin,dscotese/bitcoin,lbryio/lbrycrd,bitcoinsSG/bitcoin,namecoin/namecore,gjhiggins/vcoincore,rawodb/bitcoin,sstone/bitcoin,Sjors/bitcoin,bitcoinsSG/bitcoin,tjps/bitcoin,apoelstra/bitcoin,yenliangl/bitcoin,instagibbs/bitcoin,ajtowns/bitcoin,EthanHeilman/bitcoin,RHavar/bitcoin,particl/particl-core,GlobalBoost/GlobalBoost,CryptArc/bitcoin,gjhiggins/vcoincore,instagibbs/bitcoin,EthanHeilman/bitcoin,mm-s/bitcoin,domob1812/namecore,Xekyo/bitcoin,bitcoin/bitcoin,domob1812/bitcoin,apoelstra/bitcoin,mm-s/bitcoin,myriadteam/myriadcoin,jtimon/bitcoin,guncoin/guncoin,myriadcoin/myriadcoin,Bushstar/UFO-Project,lbryio/lbrycrd,bitcoinknots/bitcoin,midnightmagic/bitcoin,MarcoFalke/bitcoin,peercoin/peercoin,yenliangl/bitcoin,kallewoof/bitcoin,dscotese/bitcoin,OmniLayer/omnicore,JeremyRubin/bitcoin,BTCGPU/BTCGPU,bitcoinsSG/bitcoin,wellenreiter01/Feathercoin,anditto/bitcoin,midnightmagic/bitcoin,GroestlCoin/bitcoin,Kogser/bitcoin,jnewbery/bitcoin,Xekyo/bitcoin,qtumproject/qtum,achow101/bitcoin,mruddy/bitcoin,practicalswift/bitcoin,qtumproject/qtum,Bushstar/UFO-Project,practicalswift/bitcoin,EthanHeilman/bitcoin,myriadcoin/myriadcoin,JeremyRubin/bitcoin,vertcoin/vertcoin,tecnovert/particl-core,n1bor/bitcoin,andreaskern/bitcoin,CryptArc/bitcoin,jlopp/statoshi,afk11/bitcoin,Flowdalic/bitcoin,particl/particl-core,ajtowns/bitcoin,Kogser/bitcoin,tecnovert/particl-core,FeatherCoin/Feathercoin,jamesob/bitcoin,peercoin/peercoin,dscotese/bitcoin,jlopp/statoshi,wellenreiter01/Feathercoin,ericshawlinux/bitcoin,namecoin/namecore,JeremyRubin/bitcoin,bitcoinknots/bitcoin,mruddy/bitcoin,CryptArc/bitcoin,tecnovert/particl-core,sstone/bitcoin,JeremyRubin/bitcoin,ElementsProject/elements,thrasher-/litecoin,GroestlCoin/bitcoin,AkioNak/bitcoin,vmp32k/litecoin,fujicoin/fujicoin,namecoin/namecoin-core,JeremyRubin/bitcoin,lbryio/lbrycrd,monacoinproject/monacoin,ericshawlinux/bitcoin,ahmedbodi/vertcoin,bespike/litecoin,tjps/bitcoin,practicalswift/bitcoin,pstratem/bitcoin,Bushstar/UFO-Project,rnicoll/dogecoin,kallewoof/bitcoin,mruddy/bitcoin,OmniLayer/omnicore,GlobalBoost/GlobalBoost,lbryio/lbrycrd,peercoin/peercoin,mitchellcash/bitcoin,sstone/bitcoin,Xekyo/bitcoin,prusnak/bitcoin,ahmedbodi/vertcoin,nikkitan/bitcoin,ajtowns/bitcoin,DigitalPandacoin/pandacoin,cdecker/bitcoin,Flowdalic/bitcoin,bespike/litecoin,FeatherCoin/Feathercoin