Reduce Python locking in AlgorithmPythonWrapper
Reduce Python locking in AlgorithmPythonWrapper

- Removed unnecessary Py.GIL() calls
- Cached some IAlgorithm properties

jameschch/Lean,Jay-Jay-D/LeanSTP,andrewhart098/Lean,AlexCatarino/Lean,QuantConnect/Lean,jameschch/Lean,StefanoRaggi/Lean,Jay-Jay-D/LeanSTP,tomhunter-gh/Lean,Mendelone/forex_trading,AnshulYADAV007/Lean,kaffeebrauer/Lean,andrewhart098/Lean,kaffeebrauer/Lean,young-zhang/Lean,kaffeebrauer/Lean,young-zhang/Lean,redmeros/Lean,JKarathiya/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,young-zhang/Lean,Mendelone/forex_trading,andrewhart098/Lean,Jay-Jay-D/LeanSTP,JKarathiya/Lean,jameschch/Lean,JKarathiya/Lean,AlexCatarino/Lean,andrewhart098/Lean,QuantConnect/Lean,StefanoRaggi/Lean,tomhunter-gh/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,redmeros/Lean,AnshulYADAV007/Lean,StefanoRaggi/Lean,redmeros/Lean,AnshulYADAV007/Lean,Mendelone/forex_trading,AnshulYADAV007/Lean,kaffeebrauer/Lean,AnshulYADAV007/Lean,JKarathiya/Lean,redmeros/Lean,tomhunter-gh/Lean,Jay-Jay-D/LeanSTP,tomhunter-gh/Lean,kaffeebrauer/Lean,jameschch/Lean,jameschch/Lean,young-zhang/Lean,AlexCatarino/Lean,Mendelone/forex_trading,QuantConnect/Lean