A few improvements

- multiple applications
- argparse instead of deprecated optparse
- std is extended, not overidden
- removed unnecessary imports

Hi we have a legacy app which contains multiple app packages (in the middle package renaming).
We needed it so I updated for mainly multiple applications option but also did small improvements.