new script using py4chan, further code modularization