Added missing package.
Improved error handling. Fixed python dockerfile.