Make script compatible with python 2.5

It's a little bit less nice to use getopts than argparse, but it makes the script compatible with python 2.5 which is commonly installed on older Debian/linux servers.