Improved python dependency output and runs it earlier