Arguments as parameter to function _real_main so it can be used programmatically
Added parenthesis for explicity
Merge pull request #792 from fp7/master

Parameters as arguments to main