show complex python script (with testable main)