format_px_object_as_lines function

Get lines for PX-file from px object