>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes: Phil> + py_file = py_file.rstrip('.py') The argument to rstrip is a set of characters; I think this will do the wrong thing for, e.g., "p.py". You can just use py_file[:-3] instead. The code bits are ok with that change. Tom