paping railing on python