refactoring pymol ripit and pdbshow