extracted oneliners to their own file

pylinter now allows 120 chars, other misc. fixes