PEP8: fedoracommunity/connector/api package and refactoring code.