Q: How do I use stereoscopy in IDLE/Python? I have downloaded and installed the stereoscopy library. I know how to execute the program via command line as it shows clearly here: https://pypi.org/project/stereoscopy/#description
However, i looked at its code and I wanted to do it myself. I want to insert the code from: https://github.com/2sh/StereoscoPy/blob/master/stereoscopy/init.py and see if it works there.
I copied the code and when I run it, nothing happens. No errors or anything, but no picture shows up and no picture is saved. 
So I would like to learn how to use this library to make my own anaglyph pictures by coding it myself and not use the command line executable.
Thank you for your help :)

A: Running StereoscoPy from a command line executes stereoscopy.__main__, which mainly consists of
from . import _main
_main()

_main is imported from _init.py.  The latter defines some constants, classes, and functions, including _main, but does not call any of them.  You need to do what __main__.py does, call _main, after stuffing arguments into sys.argv.  One way to do the latter is to use sys.argv = shlex.split(cli_string, posix=True) where cli_string is the string that would be typed at a command line.
