Add pip requirements file, solve coding style issues and fix command line parsing

@fgalan