rsp() changes and PEP8 formatting