Moved main() to be compatible with setuptool entrypoints