pylinte and added some tests
regex for profile